package com.abprogramming;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import java.util.Objects;

/**
 * 编辑应用程序
 *
 * @author AB-style
 * @date 2022/10/04
 */
public class EditApplication extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        try {
            BorderPane root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource("/fxml/Edit.fxml")));
            Scene scene = new Scene(root,700,500);
            primaryStage.setTitle("编辑器");
            primaryStage.setScene(scene);
            primaryStage.show();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
